package cn.wolfcode.shop.service;

import cn.wolfcode.shop.exception.UserException;

public interface IUserLoginService {
    /**
     * 用户注册
     * @param username
     * @param password
     */
    void userRegist(String username,String password) throws UserException;

    /**
     * 用户登录
     * @param username
     * @param password
     * @return
     * @throws UserException
     */
    String userLogin(String username, String password) throws UserException;

    /**
     * 注销
     * @param token
     */
    void logout(String token) throws UserException;
}
